package Java9_15;

import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.Calendar;

public class Work2 {
    public static void main(String[] args) {
        Class c = Calendar.class;
        System.out.println(c.getName());
        System.out.println(c.getSuperclass());
        Class[] interfaces = c.getInterfaces();
        for (Class c1:interfaces)
            System.out.println(c1);
        Field[] fields = c.getDeclaredFields();
        for (Field f:fields)
            System.out.println(f);
        Method[] methods = c.getDeclaredMethods();
        for (Method m:methods)
            System.out.println(m);
        Constructor[] constructors = c.getDeclaredConstructors();
        for (Constructor c2:constructors)
            System.out.println(c2);

    }
}
